package com.semp.jadoma.core.dao;

import org.hibernate.Session;

import com.semp.jadoma.core.model.FamilyReference;
import com.semp.jadoma.core.util.HibernateUtil;

public class FamilyReferenceDAO {

	public final static FamilyReference find(Long familyId) {
		Session session = HibernateUtil.getSessionFactory().openSession();
		session.beginTransaction();
		FamilyReference toReturn = (FamilyReference) session.get(FamilyReference.class, familyId);
		session.close();
		return toReturn;
	}
	
}
